import axios, { Axios } from 'axios'
const context = '/deviceservice'

/**
 * 获取 ProductQuestion 分页列表
 */
export function getProductQuestionPagination(data: any) {
  return axios.get(`${context}/productQuestion/pagination`, { params: data })
}

/**
 * 获取 ProductQuestion 所有数据
 */
export function getProductQuestionAllList(data: any) {
  return axios.get(`${context}/productQuestion/allList`, { params: data })
}

/**
 * 获取 ProductQuestion 详情
 */
export function getProductQuestionDetailById(id: any) {
  return axios.get(`${context}/productQuestion/${id}`, { params: { id } })
}

/**
 * 新增 ProductQuestion
 */
export function addProductQuestion(data: any) {
  return axios.post(`${context}/productQuestion`, data)
}

/**
 * 修改 ProductQuestion
 */
export function updateProductQuestion(data: any) {
  return axios.put(`${context}/productQuestion`, data)
}

/**
 * 删除 ProductQuestion
 */
export function batchRemoveProductQuestion(data: any) {
  return axios.post(`${context}/productQuestion/batchRemove`, data)
}
